if exists("b:current_syntax")
    finish
endif

let b:current_syntax="spf"

" SPF versions definitions
syntax keyword PreProc v spf1 pra
syntax match PreProc /spf2.0/

" mechanisms and modifiers definition
syntax keyword Keyword all ip4 ip6 a mx ptr exists include redirect exp

" qualifiers definition
syntax match Type /[\+\-\?\~\=\/]/

" IP address definition
"syntax match Comment /\([0-9]\{1,3}\.\)\{3}[0-9]\{1,3}/

" mechanism's value definition (domain/IP)
syntax match Constant /\(:\)\@<=\([a-zA-Z0-9\_]\([a-zA-Z0-9\_\-]\)\{}\.\)\+[a-zA-Z0-9]\{}/

" cidr definition
syntax match Identifier /\/[0-9]\{1,2}/
